add_library(main SHARED
    applets/mii_selector.cpp
    applets/mii_selector.h
    applets/swkbd.cpp
    applets/swkbd.h
    button_manager.cpp
    button_manager.h
    camera/ndk_camera.cpp
    camera/ndk_camera.h
    camera/still_image_camera.cpp
    camera/still_image_camera.h
    config.cpp
    config.h
    default_ini.h
    emu_window/emu_window.cpp
    emu_window/emu_window.h
    game_info.cpp
    game_info.h
    game_settings.cpp
    game_settings.h
    id_cache.cpp
    id_cache.h
    mic.cpp
    mic.h
    native.cpp
    native.h
    ndk_motion.cpp
    ndk_motion.h
)

target_link_libraries(main PRIVATE audio_core common core input_common network)
target_link_libraries(main PRIVATE android camera2ndk mediandk jnigraphics EGL glad inih log yuv)

set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} main)
